/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 62536
 * Date: 2023-12-03
 * Time: 14:33
 */
public class Main {
    public static void main(String[] args) {
        MySingleList singleList = new MySingleList();
        singleList.addFirst(5);
        singleList.addFirst(6);
        singleList.addFirst(7);
        singleList.addFirst(8);
        singleList.display();
        singleList.remove(7);
        singleList.addLast(4);
        singleList.display();
        singleList.clear();

    }
}
